home *** CD-ROM | disk | FTP | other *** search
- fx is a program that allows you to send a command to SYSOP via AREXX and
- it will save the output from that command into a specified file.
- The reason this program is needed is because I cannot get the AREXX GETARG()
- function to work with the rexxhost.library that I am using to handle the
- AREXX calls for me. I can make an AREXX script send a string to another
- AREXX script which receives it using GETARG(). But if I send that same
- script a string from SYSOP, it gives an Illegal Argument error in the
- GETARG() function.
-
- Until I can find out why this fails and can fix it, the fx program can do
- almost the same thing for you. In order to use this program the prompt in
- your 'sysop' program MUST be 'SYSOP>'. The fx program uses the 'SYSOP>' to
- detect when the output from the command has finished. Usage is as follows:
-
- fx filename c-bbs_command argument(s)
-
- The filename is the name of the file where the output from SYSOP is to be
- stored and the rest of the arguments are whichever C-BBS command you want
- to have executed. Only one command can be done at a time.
-
- 'fx' sends the 'GO' command to SYSOP (which MUST be IDLE at the time)
- and then it sends the command argument and saves all output up to but NOT
- including the next SYSOP> prompt. Once that is done, it sends a 'B'ye
- command to sysop to make it IDLE again. As an example, if you want a listing
- of all AMSAT bulletins to be stored in the file ram:amsat.out then use the
- command
-
- fx ram:amsat.out l@ amsat
-
- Note that you do not have to put quotes around the l@ amsat command.
- However, if the command you are sending contains any characters that mean
- something to AREXX or amigados, it is safest to enclose the whole command in
- quotes. For example:
-
- fx ram:amsat.out "l@ amsat ;"
- or
- fx ram:amsat.out l@ amsat ";"
-
- will do the same thing.
-
- The fx program takes all arguments after the filename and collects them
- into one string putting spaces between each argument. The above examples will
- therefore send the command "l@ amsat ;" to sysop. The output will not include
- the initial or final SYSOP> prompts, but it will include the title line that
- is part of the output from the 'L' commands. Your AREXX script must take
- this into account and skip this line. See the sample AREXX script which does
- just that (fx.rexx).
-
- There is one restriction you should heed. Not all C-BBS commands output a
- whole line at a time. Some of them print part of a line and then individual
- characters. The FX program cannot be used to capture this output. I will try
- to fix this problem. I expect that the main use of this program will be to
- capture the output of the List command which always outputs a whole line at
- a time.
-